public class Test {
    public static void main(String[] args) {
        String str = "College english Test";
        String[] arr = str.split(" ");
        for (int i = 0; i < arr.length; i++) {
            String s = String.valueOf(arr[i].charAt(0));
            System.out.println(s.toUpperCase());
        }
    }
}
